package com.limit.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

public class ActorModule extends Model<ActorModule>{

	private static final long serialVersionUID = 1L;

	public static final ActorModule dao = new ActorModule();
	
	public Module getModule(){
		return Module.dao.findById(get("module_id"));
	}
	
	/**
	 * 批量更新/删除/插入
	 */
	public int[] batchOperate(List<String> sqlList){
		
		return Db.batch(sqlList, 20);
	}
	
}
